<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>背景属性</title>
		<style>
			div{
				width: 500px;
				height: 500px;
				background-color: #00ffff;
				/*背景图属性*/
				background-image: url(img/蜡笔小新.png);
                /*背景图大于空间--背景图尺寸属性：属性值 ① px % */
				background-size: 30% 30%;
				/*背景图小于空间--平铺*/
				background-repeat: no-repeat;
                /*背景图小于空间-->背景定位属性，属性值 x% y%  数值px  数值px  英文*/
				background-position: 20% 0%;
				background-position: 100px 0;
				background-position: center center;
			}
			/*背景图形固定属性：fixed固定模式*-->理解：水印*/
			body{
				/*高度：10000px 形成滚动条*/
				height: 10000px;
				/*滚动模式-->背景图如何滚动--属性backgroud-size*/
				background-size: cover;
				/*引入图*/
				background-image: url("img/蜡笔小新.png");
				background-repeat: no-repeat;
				/*水印效果：背景图固定*/
				background-attachment:fixed ;
			}
		</style>
	</head>
	<body>
		Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae dignissimos, accusantium mollitia quis ut quas repudiandae, nulla deserunt fugit eligendi dolores eaque similique voluptate ratione, harum quibusdam labore? Saepe, <qui class="lorem"></qui>
		<div></div>
	</body>
</html>